libxl: use libxl_fd_set_{cloexec,nonblock} helpers
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Jul 2014 14:51:26 +0000 (16:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Jul 2014 14:51:26 +0000 (16:51 +0200)
commit216236c58740cc7683fe4338ebb1915236d39a43
tree4f3f5149961e6524b797a3e40414a179e4ace418
parent76f657aea9f168ca617f98d513540bb3587c974b
libxl: use libxl_fd_set_{cloexec,nonblock} helpers

... instead of open-coding them or not using them at all. This in
particular fixes a build (and presumably also runtime) problem on old
enough libc due to the recent introduction of a use of O_CLOEXEC. The
other two changes are only of cleanup kind.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_qmp.c
tools/libxl/libxl_utils.c